package com.dingwen.wcrtst.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * RestTemplate 配置
 *
 * @author dingwen
 * 2021.05.07 15:17
 */
@Configuration
public class RestTemplateConfig {

    /*
     * 注入 RestTemplate Bean
     * @return RestTemplate
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
